from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


def scanElMessage(driver):
    try:
        message = WebDriverWait(driver, 3).until(
            EC.visibility_of_element_located((By.CLASS_NAME, "el-message__content"))
        ).text
    except Exception as e:
        pass
    else:
        return message


